<%--
  Created by IntelliJ IDEA.
  User: zhaokui
  Date: 2024/7/20
  Time: 16:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>文件上传</title>
</head>
<body>

<form action="upload" method="post" enctype="multipart/form-data">
    <input type="file" name="file">
    <button>上传</button>
    <a href="<%= request.getContextPath() %>/index.jsp">首页</a>
</form>

<br/>
<%
    if(request.getAttribute("msg")!=null && !request.getAttribute("msg").toString().equals("")){
        out.print(request.getAttribute("msg"));
    }
%>
</body>
</html>
